import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


class DevelopConfig(object):
    DEBUG = True
    SECRET_KEY = "*)asdfasd&fsadffasdf(^(#$#8423!#"
    # SQLALCHEMY_DATABASE_URI = "mysql://root:root123@127.0.0.1:3306/db_python"
    SQLALCHEMY_DATABASE_URI = 'sqlite:///../db/datas.db'
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SQLALCHEMY_ECHO = False   # 是否显示sql语句


class ProductpConfig(object):
    DEBUG = False
    SECRET_KEY = "*)asdfasd&fsadffasdf(^(#$#8423!#"
    # SQLALCHEMY_DATABASE_URI = "mysql://root:123@127.0.0.1:3306/flask_students"
    SQLALCHEMY_DATABASE_URI = 'sqlite:///../datas/pms.db'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_ECHO = False


envs = {
    "development": DevelopConfig,
    "product": ProductpConfig
}
